﻿using System;
using System.Collections.Generic;
using System.Text;

using ECCIT.Business.Model;
using OgilvyOne.Model;

namespace OgilvyOne.UKNow.Model
{
    [Serializable]
    public class NewsModel : BaseModel, IStaticGeneratableModel
    {
        public int? LanguageID { get; set; }
        public int? ID { get; set; }
        public int? State { get; set; }
        public string Title { get; set; }
        public string ShortDescription { get; set; }
        public string Content { get; set; }
        public bool IsHotspot { get; set; }
        public string ImageName { get; set; }
        public string ImagePath { get; set; }
        public string ImageType { get; set; }
        public string ImageDesc { get; set; }

        /// <summary>
        /// 新闻的手机图片 李学明 2012-4-24
        /// </summary>
        public IList<PhoneImage> PhoneImagesList; 

      /// <summary>
        /// 代码添加
        /// 修改时间 : 2012-03-14
        /// 修改人:穆凤凤
        /// 添加描述:新增 模板ID
        /// </summary>
        #region IStaticGeneratableModel 成员
        public int? TemplateID { get; set; }
        public int? ColumnID { get; set; }
        public bool IsHtmlFile { get; set; }
        public int Preview { get; set; }
        public string HtmlFileName { get; set; }
        public string SEOTitle { get; set; }
        public string SEOMetaKeywords { get; set; }
        public string SEOMetaDescription { get; set; }
        #endregion
        public DateTime InsertedTime { get; set; }
        public DateTime UpdatedTime { get; set; }

        /// <summary>
        /// 手机内容
        /// </summary>
        public string PhoneContent { get; set; }

        /// <summary>
        /// 排序字段 2012-7-12 李学明
        /// </summary>
        public int Order { get; set; }

        public NewsModel() { }

        public NewsModel(int? langID, int? id, int? state, string title, string shortDesc, string content, bool isHotspot,
            string imageName, string imagePath, string imageType, string imageDesc, int? templateID  , DateTime insertedTime, DateTime updatedTime,int?columnID,string phonecontent,int order)
        {
            this.LanguageID = langID;
            this.ID = id;
            this.State = state;
            this.Title = title;
            this.ShortDescription = shortDesc;
            this.Content = content;
            this.IsHotspot = isHotspot;
            this.ImageName = imageName;
            this.ImagePath = imagePath;
            this.ImageType = imageType;
            this.ImageDesc = imageDesc;
            this.TemplateID = templateID;//mff
            this.InsertedTime = insertedTime;
            this.UpdatedTime = updatedTime;
            this.ColumnID = columnID;
            this.PhoneContent = phonecontent;
            this.Order = order;
        }
    }
}
